package io.renren.modules.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.renren.modules.generator.dao.JobcodeDao;
import io.renren.modules.generator.entity.JobcodeEntity;
import io.renren.modules.generator.service.JobcodeService;



@Service("jobcodeService")
public class JobcodeServiceImpl implements JobcodeService {
	@Autowired
	private JobcodeDao jobcodeDao;
	
	@Override
	public JobcodeEntity queryObject(Integer code){
		return jobcodeDao.queryObject(code);
	}
	
	@Override
	public List<JobcodeEntity> queryList(Map<String, Object> map){
		return jobcodeDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return jobcodeDao.queryTotal(map);
	}
	
	@Override
	public void save(JobcodeEntity jobcode){
		jobcodeDao.save(jobcode);
	}
	
	@Override
	public void update(JobcodeEntity jobcode){
		jobcodeDao.update(jobcode);
	}
	
	@Override
	public void delete(Integer code){
		jobcodeDao.delete(code);
	}
	
	@Override
	public void deleteBatch(Integer[] codes){
		jobcodeDao.deleteBatch(codes);
	}
	
}
